//利用方法重载，编写四个重载方法，分别求两个整数和、三个整数和、两个小数和
public class Demo4 {
	int a;
	int b;
	int c;
	double num1;
	double num2;

	public Demo4() {

	}

	public int Demo4(int a, int b) {
		this.a = a;
		this.b = b;
		return a + b;
	}

	public int Demo4(int a, int b, int c) {
		this.a = a;
		this.b = b;
		this.c = c;
		return a + b + c;
	}

	public double Demo4(double num1, double num2) {
		this.num1 = num1;
		this.num2 = num2;
		return num1 + num2;
	}

}
